import { un } from '@uni-helper/uni-network'

const domainHttpInstance = un.create({
  baseUrl: 'https://api.tykhrs.com',
  timeout: 5000,
})

interface FetchDomainAPIResData {
  code: number
  data: string
  msg: string
  time: string
}

export function fetchDomainAPI() {
  return domainHttpInstance.get<FetchDomainAPIResData>(
    '/api/index/geturl?title=口腔医院',
  )
}
